package com.dyh.quickdemo.demos.spy.demos;

import com.dyh.quickdemo.demos.spy.Spy;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Service;

/*
@Author=Joey Wheeler
@Date=2020/12/4 10:10
*/
@Service
@Slf4j
public class XXservice {

    @Autowired
    XXdao xXdao;

    public void xx(){
        log.info("service.xx");
        xXdao.xx();

        try {
            Thread.sleep(140);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
//        Spy.enter();
//        xXdao.xx();
//        Spy.exit();
    }
}
